package cn.org.july.weixin.controller;

import cn.org.july.weixin.service.menu.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * User:  wanghongjie
 * Date:  2020/9/1 - 06:59
 * <p>
 * Description:
 *
 * @blame Android Team
 */
@RestController
@RequestMapping("/wx/menu")
public class MenuController {

    @Autowired
    private MenuService menuService;

    @RequestMapping("/create")
    public String createMenu() throws IOException {
        return menuService.createMenu();
    }

    @RequestMapping("/delete")
    public String deleteMenu() throws IOException {
        return menuService.deleteMenu();
    }

}